package Phanso;

public class Rational {
	private float tuso;
	private float mauso;
	
	public float getTuso(){
		return this.tuso;
	}
	public void setTuso(float tuso){
		this.tuso=tuso;
	}
	public float getMauso(){
		return this.mauso;
	}
	public void setMauso(float mauso){
		this.mauso=mauso;
	}
	public void hienthi(){
		do{
			System.out.println("Khong phai la phan so");
		}while(mauso==0);
		if(mauso<0){
			mauso=mauso*(-1);
			tuso=tuso*(-1);
		}
		System.out.println(+tuso+mauso );
	}
	public void hienthi(){
		System.out.println("Phan so");
	}
	public static void main(String[] args) {
		Rational phanso = new Rational();
	phanso.setTuso(5);
	phanso.setMauso(0);

	}

}
